<?php

class Properties {
 
	private $xml;   
	
	public function __construct($property_file) {
		$this->xml = simplexml_load_file($property_file);				
	}
	
	public function get($key) {
		$value = $this->xml->xpath("//properties/property[@key='" . $key . "']");
		
		$result =  $value[0]['value'][0];
		
		return $result;
	}
}